package lp.xian.materials.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存管理对象 lp_warehouse_stock
 *
 * @author ruoyi
 * @date 2023-08-17
 */
public class WarehouseStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存id */
    private Integer warehouseStockId;

    /** 仓库id */
    @Excel(name = "仓库id")
    private Integer warehouseDeptId;

    /** 单据号 */
    @Excel(name = "单据号")
    private String warehouseStockOrder;

    /** 库存类型 */
    @Excel(name = "库存类型")
    private Integer warehouseStockType;

    /** 单据日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warehouseStockDate;

    public void setWarehouseStockId(Integer warehouseStockId)
    {
        this.warehouseStockId = warehouseStockId;
    }

    public Integer getWarehouseStockId()
    {
        return warehouseStockId;
    }
    public void setWarehouseDeptId(Integer warehouseDeptId)
    {
        this.warehouseDeptId = warehouseDeptId;
    }

    public Integer getWarehouseDeptId()
    {
        return warehouseDeptId;
    }
    public void setWarehouseStockOrder(String warehouseStockOrder)
    {
        this.warehouseStockOrder = warehouseStockOrder;
    }

    public String getWarehouseStockOrder()
    {
        return warehouseStockOrder;
    }
    public void setWarehouseStockType(Integer warehouseStockType)
    {
        this.warehouseStockType = warehouseStockType;
    }

    public Integer getWarehouseStockType()
    {
        return warehouseStockType;
    }
    public void setWarehouseStockDate(Date warehouseStockDate)
    {
        this.warehouseStockDate = warehouseStockDate;
    }

    public Date getWarehouseStockDate()
    {
        return warehouseStockDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("warehouseStockId", getWarehouseStockId())
                .append("warehouseDeptId", getWarehouseDeptId())
                .append("warehouseStockOrder", getWarehouseStockOrder())
                .append("warehouseStockType", getWarehouseStockType())
                .append("warehouseStockDate", getWarehouseStockDate())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
